package app

import (
	"administrator/app/config"
	"administrator/app/controllers/configuration"
	"administrator/app/controllers/user"
	"administrator/app/interceptors"
)

// 初始化 跨域中间件配置
func init() {

}

var option = []any{
	// 存在跨域行为，跨域处理中间件，需要放在最前面，验证跨域后，进行身份认证
	config.Cors(),
	// 注册控制器
	user.New(),
	configuration.NewMenuManagement(),
	configuration.NewOrgManagement(),
	configuration.NewRoleManagement(),
	configuration.NewAccountManagement(),
	configuration.NewFuncManagement(),
	configuration.NewToolManagement(),
	interceptors.GetRbac(),
}
